import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入vant
import Vant from 'vant'
import 'vant/lib/index.css'
// 全局样式
import './styles/index.less'
// 转换为rem大小
import 'amfe-flexible'
// 字体图标
import './styles/iconfont.css'
// 时间过滤器
import * as filters from './filters/index'

Object.keys(filters).forEach(item => {
  Vue.filter(item, filters[item])
})

Vue.use(Vant)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
